package com.tgr.component.ui.calendar
{
	import flash.utils.getTimer;
	
	public class EntryForWeeklyCalendar 	
	{
		private var entry:BasicScheduleCanvasEntry;
		
		public function EntryForWeeklyCalendar(entry:BasicScheduleCanvasEntry)
		{
			this.entry = entry;
		}
		
		public function getDayOfWeek():Number
		{			
			return entry.leftCol;
		}
		
		public function get startHours():Number
		{						
			var hours:Number = Math.floor(entry.relativeTopEdgeRatio * 24);
			return hours;				
		}
		
		public function get startMinutes():Number
		{
			var minutes:Number = Math.round(entry.relativeTopEdgeRatio * 24 * 60 - startHours * 60 );
			minutes=(minutes<60)?minutes:59; 
			return minutes;
		}
		
		public function get endHours():Number
		{
			var hours:Number = Math.floor(entry.relativeBottomEdgeRatio * 24); 
			return hours;
		}
		
		public function get endMinutes():Number
		{
			var minutes:Number = Math.round(entry.relativeBottomEdgeRatio * 24 * 60 - endHours * 60);
			minutes = (minutes<60)?minutes:59; 
			return 	minutes;
		}
	}
}